{{useCss "app-pages/css/goods_list.scss"}}
<div class="goods_list">
    <div class="chooselist {{touchNav&&'focus'}}">
        <href to="/goods_list.html?id=3">
            <div class="first">最新上架</div>
        </href>
        <href to="/goods_list.html?id=2">
            <div>销量最高</div>
        </href>
        <a style="cursor: pointer" event-click="{{'$Event.goods_list.change_sort_asc'}}">
            <div>价格<i class="icon-{{$Cache.goods_list.sort_asc&&'down'||'up'}}-open-big"></i></div>
        </a>

    </div>

    <div class="listtitle">
        {{$Cache.goods_list.typetitle}}
    </div>

    <div class="list">
        {{#each $Cache.goods_list.list}}
        <div class="listitem">
            <div class="goodsimg">
                <href to="/goods_details.html?id={{_id}}">
                    <img bind-src="{{preview_img_url}}?imageView/1/w/250/h/250" />
                </href>
            </div>
            <div class="box">
                <div class="info">
                    <href class="name" to="/goods_details.html?id={{_id}}">
                        {{goods_name+" "}}
                    </href>
                </div>
                <div class="info">
                    <div class="price">￥{{#Fixed cash}}</div>
                </div>
            </div>
        </div>
        {{/each}}
        <div id="_mark"></div>
        {{#if !$Cache.goods_list.list.length}}
        <div class="listitem">
            <i>此目录下暂没有上传商品</i>
        </div>
        {{/if}} 
        <div class="getmore">
            {{#if loadingoods}}
                <p><i class="icon-spin4"></i>正在加载</p>
            {{#else}} 
                <div id="_mark"></div>
                {{#if isresult}}
                <button class="btn" event-click="{{'$Event.goods_list.getMoreGoods'}}">查看更多商品</button>
                {{/if}}
            {{/if}}
        </div>
    </div>
    <div class="icon-up-big" title="返回顶部" event-click="{{'$Event.goods_list.back_to_top'}}"></div>
</div>
